Skip to content

chore(pm): queue guard refusal hints follow PD14 dequeue; record the live pr_dequeue reading - #34559

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-xwv2iy
Nov 17, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-xwv2iy

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Part of #33768
Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:队列守卫两条拒收提示(受管面、超行数)的第一步改为:在队 PR 由其落地席发中继 pr_dequeue,其他席位或该笔未落地才请维护者手动移出;自测钉子同步。platform-readings.md 记一行实测出队读数,landing-operations.md 一行指给落地席。
  • 为什么改:AGENTS.md 第 14 条(已落地)写明落地席可发 pr_dequeue,守卫提示仍说「没有席位动作能出队」,把每个席位都送去找维护者,与规则相反。
  • 风险与回滚:只改提示文字、注释与自测钉子,判定逻辑不动;回滚 = revert 本 PR 一个提交。
  • 先看:scripts/pm/check-governed-queue-guard.mjs 1990–1999 与 2959–2968(两条提示正文)、5162–5205(钉子)。
  • 两分钟验证:node scripts/pm/check-governed-queue-guard.mjs --self-test → 581 cases pass。
  • 需要你做的:批准本 PR(Tier H:守卫是受管面自身的门)。

AGENTS.md Prime Directive #14, as landed (merge 3bf9c5c4), quoted verbatim

Already armed or queued when you read this? Disable auto-merge AND convert it back to draft, which disarms
an unqueued PR; a queued one's landing seat sends the relay's pr_dequeue (measured live, comment 6902190812); any
other seat, or a stroke that does not land, asks the maintainer at once — then confirm from the remote that it is
in neither the queue nor origin/main.

What changes

Box A: the queue guard's refusal remedies follow PD14. renderGuardVerdict and renderSizeVerdict step 1 now say: disabling auto-merge and converting to DRAFT do not take a queued PR out of the queue; its landing seat sends the relay's pr_dequeue AT ONCE (measured live, comment 6902190812); any other seat, or a stroke that does not land, asks the maintainer AT ONCE to remove it by hand; then disarm and confirm from the remote. The old text ("no seat act is measured to take it out of the queue") is gone. No new rule: the wording is PD14's.

Comments and pins kept in step:

  • the remedy-order pin's first position is now its landing seat sends the relay's \pr_dequeue` AT ONCE(wasask the maintainer AT ONCE); its assert name drops MAINTAINER-`;
  • the queued pull-back battery's header comment, its QUEUED_PULL_BACK pins (the old "no seat act" and "ask the maintainer" pins replaced by three: not-out-of-the-queue, landing seat's pr_dequeue, any-other-seat asks the maintainer), its assert name and its battery name (…: the landing seat sends the relay dequeue, never a DRAFT conversion; the roster row renamed with it, count stays 4);
  • the self-test's closing summary sentence.

The DRAFT-dequeue detector and its fixtures are untouched: a draft conversion still does not dequeue.

Box B: the measured live dequeue.

Paid in-family, both files stay at their ceilings (458, 112):

  • platform-readings.md: the two lines "不在 origin/main 上是二义读数…两者处置相反" and "⇒ 落地检查恒两个读数…缺一不可" merged into one: 不在 \origin/main` 二义(在队等/没入队)⇒ 落地检查恒读两数:队列成员资格与 `origin/main`。` Cut: "两者处置相反" and "缺一不可", both carried by "恒读两数".
  • landing-operations.md §D: "两棒散文互锁时分工由 PM 指派,允许前棒留占位交接。" and "PM 必须在两侧接力指令里写明谁动、谁不动。" merged: …允许前棒留占位交接;PM 在两侧指令写明谁动、谁不动。 Cut: "必须", "接力".

Tests

  • node scripts/pm/check-governed-queue-guard.mjs --self-test: 581 cases pass (581 at base; the battery's assertion count is unchanged).
  • Ablation (scratch copy, restored): changing the size remedy's "So its landing seat sends" back to an ask-the-maintainer opening → ✗ ⭐ every-size-refusal-kind-carries-the-SAME-pull-back, 1 of 581 failed.

Acceptance notes

Verification

Head 1f35f8d4 on base ec6b5fd3:

  • node scripts/pm/dispatch-gates.mjs --commands derived 70; 68 exit 0; 2 exit 3 (PREREQUISITE NOT MEASURED, left to CI): pnpm --filter @objectstack/lint run check:doc-formula-expressions (@objectstack/formula not built) and pnpm check:i18n-coverage (CLI not built). Neither reads the three files here.
  • --ran: 70 derived, 68 run, 2 NOT-MEASURED, 0 UNRUN, exit 0.
  • Among the 68: check-governed-queue-guard --self-test (581 pass), pnpm check:pm-skill-ratchet (platform-readings 458/458, landing-operations 112/112), pnpm check:pm-skill-id-lint (118 files clean), check:pm-governed-prose, check:scripts-symbol-anchors, check:nul-bytes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzfVcrqPWPvsYbkg1XX

…dequeue reading

The queue guard's two refusal remedies and their pins now say what AGENTS.md
Prime Directive #14 says: a queued pull request's landing seat sends the
relay's `pr_dequeue` at once (measured live, comment 6902190812); any other
seat, or a stroke that does not land, asks the maintainer. platform-readings.md
records the measured stroke (fleet-write run 43767458575) and
landing-operations.md points the landing seat at it, both paid in-file.

Refs #33768

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfVcrqPWPvsYbkg1XX
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 17, 2026
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation labels Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

Contract-review-handoff: review#2 — CONTRACT_REVIEW_TIER unavailable (seat session runs the default tier, 2026-11-17T00:51Z) · head 1f35f8d

The diff touches governed rules text (.claude/skills/pm-dispatch/references/landing-operations.md, platform-readings.md) and the queue guard's refusal hints (scripts/pm/check-governed-queue-guard.mjs), so it owes a contract-review-tier record before the seat record; this seat cannot run that tier, so the review goes to review#2 per the routing in references/contract-review.md. Card #33768 (two follower boxes of PR #34256 only), os-dev-report 6934142230. Seat-noted deviation: the body says Part of #33768 (os-dev.md form) where the order said Refs; both are non-closing, accepted.

@objectstack-fleet objectstack-fleet Bot added the needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides label Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

Contract-review-handoff: l2-review#3 — CONTRACT_REVIEW_TIER unavailable (seat session runs the default tier, 2026-11-17T00:54Z) · head 1f35f8d

Re-routed: review#2 declined new first reviews (wind-down, notify 6934173395 on mailbox #34423). The scope of the earlier hand-off on this PR stands.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

Contract-review-claim: session_01WGufzgtCwPzNYSczvxDEpw · head 1f35f8d · 2026-11-17T03:10Z

The lane takes this head back from the hand-off to l2-review#3 (no claim or record from it since the hand-off at 00:53Z): the seat now runs the review through an at-tier CONTRACT_REVIEW_TIER sub-agent, on its account owner's word.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1f35f8d43e4b7ea5619ea8b679a5556556dee644
Local-runs: none
Scope: .claude/skills/pm-dispatch/references/landing-operations.md, .claude/skills/pm-dispatch/references/platform-readings.md + scripts/pm/check-governed-queue-guard.mjs
Security-touching: yes

Inputs read: card #33768 (body and all 13 comments), PR #34559 (body, 3-file list, net diff against main at merge-base ec6b5fd3), the check-runs on the head, AGENTS.md Prime Directive #14 on main, audit comment 6902190812 on PR #34097, the job log of fleet-write run 43767458575 and the queue timeline of PR #34097. Code outside the diff (scripts/pm/fleet-write/ops.mjs, lanes/queue.md) was read, not reviewed.

① Derived judgments

  • No accept-set or public-surface change. In check-governed-queue-guard.mjs the diff touches only rendered remedy strings (step 1 of renderGuardVerdict and of renderSizeVerdict), comments, one battery name with its SELF_TEST_BATTERIES roster key, two assert names, the remedyOrder pin's first phrase, the QUEUED_PULL_BACK pins and the closing summary string. No verdict, exit code, tier reading or threshold moves: right.
  • The battery's roster count stays 4 and the battery still holds 4 asserts (two pull-back pins, the detector control, the negative pin): right. The renamed key and the battery(...) call carry the same string.
  • The pins went from two to three positive phrases for the dequeue step, and each new phrase is present in both renderings, so both legs are still held to one wording. The DRAFT_DEQUEUE_CLAIMS detector and its fixtures are untouched, and the new opening ("disabling auto-merge and converting it to DRAFT do not take it out of the queue") does not trip it: right.
  • Both reference files keep their line counts (platform-readings.md 458, landing-operations.md 112, each equal to main); no ratchet ceiling moves: right.
  • Check-runs on the head: every run is success or skipped, none failed, none pending. Among them Governed Surface Queue Guard, Lint · PM dispatch-gates, Lint · scoped · tooling self-tests, Check Changeset, PR-body guards.

② Semver level

skip-changeset is right: no published package file is in the diff (two skill reference files and one scripts/pm gate). Check Changeset is green on the head.
Clause-②: no — right; no published schema, no accept set, no narrowing.

③ Boundary flags

  • Dev deviation (report 6934142230): the PR body says Part of #33768 where the order said Refs. Both are non-closing and the card stays open for N1, E1, D2, D4 and N2. Accepted.
  • open_questions: none. security_findings: none.
  • E1 stays unmeasured, as the report says. The run log shows the dequeue and no merge after it; PR fix(app-shell): Home sends its deployment-notice, authorized-clients and API-key reads once per load #34097 was re-queued at 23:26Z and merged at 23:51Z, so this run gives no removal-to-merge gap.
  • SQL push-down (Prime Directive 5): not applicable, no data access in the diff.
  • PR author login is objectstack-fleet[bot]: no author note owed.
  • Security-touching: yes is meant: the changed hunks tell a seat who may take a governed pull request out of the queue, which is authority on the governed surface. The guard file is itself Tier H, so the PR waits for an authorized approval either way; this record does not stand in for it.

④ Design judgment

No must-fix, no should-fix.

platform-readings.md

  • New row 「中继 pr_dequeue 实测出队(run 43767458575,审计 6902190812):mutation 200,回读离队,仍开未合。」 holds against the measurement. The run (repository_dispatch, request fw-20261115T220702Z-cb2ece, conclusion success) logs (the arrow spelled out here): pr_dequeue: POST /graphql dequeuePullRequest answered HTTP 200 · #34097 out of the merge queue and still open, unmerged · read back 25 entr(ies), none is #34097 · audit comment 6902190812. The timeline of PR fix(app-shell): Home sends its deployment-notice, authorized-clients and API-key reads once per load #34097 carries removed_from_merge_queue at 22:10:50Z, two seconds after the audit comment (22:10:48Z), with no merged until the later re-queue. All three claims of the row are in the log. The audit comment is written before the mutation and says so, which is why the row is right to name the run first and the comment second.
  • Placement is right: after the line on the positive queue-ref probe, inside the queue-membership section the guard's hint cites.
  • Merged line 「不在 origin/main 二义(在队等/没入队)⇒ 落地检查恒读两数:队列成员资格与 origin/main。」 keeps the ambiguity, its two cases, the rule and both readings. 「缺一不可」 is carried by 「恒读两数」. See N4 for 「两者处置相反」.

landing-operations.md

  • New line 「该 op 实测离队见 platform-readings.md;在队受管面 PR 亦由落地席发(Prime Directive feat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14)。」 holds. The first half points at the row above. The second half agrees with PD14 on main ("a queued one's landing seat sends the relay's pr_dequeue") and with the relay: the pr_dequeue fences in ops.mjs are open pull, expected head, not the Version Packages pull, a whole queue read, the queue lists it, and the cause. Unlike the jump two lines up (「中继另拒 … 受管面」), no fence refuses a governed pull, so 「亦」 is the right word. The cause such a stroke travels under is (c) of the line above, which the new line sits directly beneath.
  • Merged §D line 「…允许前棒留占位交接;PM 在两侧指令写明谁动、谁不动。」 loses 「必须」 and 「接力」. The sentence is still an instruction to the PM, and the section's title and the same sentence's 「两棒」 keep it about relay orders. No meaning lost.

scripts/pm/check-governed-queue-guard.mjs (implementing file), against PD14 sentence by sentence

  • PD14: "Disable auto-merge AND convert it back to draft, which disarms an unqueued PR". Guard: draft and disarm "do not take it out of the queue", then "Disable auto-merge AND convert it back to DRAFT, which disarms it so it does not re-enter once removed". Agrees; the second sentence is unchanged from main.
  • PD14: "a queued one's landing seat sends the relay's pr_dequeue (measured live, comment 6902190812)". Guard: "its landing seat sends the relay's pr_dequeue AT ONCE (measured live, comment 6902190812)". Agrees.
  • PD14: "any other seat, or a stroke that does not land, asks the maintainer at once". Guard: the same, plus "to remove it by hand". Agrees; those words are the guard's own on main, and PD14 dropped them for line budget only (report 6906303803).
  • PD14: "then confirm from the remote that it is in neither the queue nor origin/main". Guard: verbatim, with the PD14 citation, on both legs.
  • No new rule. The guard does not name causes, the signed comment or the fences; those stay in landing-operations.md and the relay. The old claim ("no seat act is measured to take it out of the queue") is gone from both renderings, both comments and the summary string; a search of the head's file finds no copy left.
  • Tried to break it: (1) a pin that passes on a phrase that is absent — the remedyOrder pin requires each index to exist, and its first phrase is in the governed rendering; (2) the two legs drifting apart — one QUEUED_PULL_BACK list is applied to all three refusal kinds on each leg; (3) the capitalised Disable pin against the text — both renderings start that sentence with a capital. None breaks.

Nits (no effect on correctness or the contract; none asks for a change on this head):

  • N1 (nit) — the hint's premise "the pull request is IN the queue" is true when the refusal prints, but this check is required, so the failed group ejects the pull soon after. A landing seat's stroke then stops at the relay's "queue lists it" fence, and "a stroke that does not land" read alone would send it to the maintainer for a pull already out. The hint's last clause (confirm from the remote) covers it, and the wording is PD14's. The premise predates this PR. Follow-up at most.
  • N2 (nit) — "AT ONCE" on the landing seat's stroke and "to remove it by hand" go past PD14's letter, not its meaning.
  • N3 (nit) — the reflow leaves two short printed lines ("(AGENTS.md Prime Directive feat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14). Out of" and "pull-back of AGENTS.md Prime"). Cosmetic.
  • N4 (nit) — the merged platform-readings line drops 「两者处置相反」, the reason for reading both numbers. The rule and both cases stand.
  • N5 (nit) — the run also measured that a relay dequeue's removed_from_merge_queue actor is objectstack-fleet[bot], a third exit beside the two the section gives to github-merge-queue[bot]. The row does not record it; it could ride with E1.

Implemented-by: claude/project-thread-xwv2iy
Reviewed-by: session_01WGufzgtCwPzNYSczvxDEpw

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#3 · os-support-ai · session_01WGufzgtCwPzNYSczvxDEpw

维护者速读

  • 改了什么:队列守卫(scripts/pm/check-governed-queue-guard.mjs)两条拒收提示(受管面、超行数)的第一步改为:在队 PR 由它的落地席发中继 pr_dequeue,其他席位或这一笔没落地才请维护者手动移出;自测钉子同步。platform-readings.md 记一行实测出队读数,landing-operations.md 加一行指给落地席。
  • 为什么改:AGENTS.md 第 14 条(已落地)写明落地席可发 pr_dequeue,守卫提示还说「没有席位动作能出队」,把每个席位都送去找维护者,和规则相反。
  • 风险与回滚:只改提示文字、注释和自测钉子,判定逻辑、退出码、阈值都不动;两份参考文件各合并一对同族行付账,行数不升(458 / 112)。回滚即 revert。
  • 先看:守卫文件里两条提示正文(约 1990 行、2959 行),然后是 platform-readings.md 新增的一行。
  • 两分钟验证:node scripts/pm/check-governed-queue-guard.mjs --self-test,预期 581 cases pass。
  • 需要你做的:受管路径(.claude/** 加守卫本身,Tier H)。契约审核 PASS 记录 6936994907(席位自派 CONTRACT_REVIEW_TIER 子代理,带 tier 证据贴出),Head-sha: 1f35f8d43e4b7ea5619ea8b679a5556556dee644。请审阅并合并(或在此 head 上批准,由席位落地)。
  • 席位意见:建议合并。提示逐句对得上第 14 条原文,实测行对得上 run 43767458575 的日志和审计评论;审核只有 5 条 nit,没有要改的。

席位核对

Verdict: ACCEPT · head 1f35f8d43e4b7ea5619ea8b679a5556556dee644 · card #33768 (two "Follower of PR #34256" boxes only) · claim 6933576127 · os-dev-report 6934142230 · contract review 6936994907 (seat's at-tier sub-agent, PASS on this head, N1–N5 nits only) · read 2026-11-17T03:16Z.

  • Shape: draft → main, Part of #33768 (os-dev.md form; the order said Refs — both non-closing, the card stays open for N1, E1, D2, D4, N2), no closing keyword. Three files: scripts/pm/check-governed-queue-guard.mjs (+36/−28), .claude/skills/pm-dispatch/references/platform-readings.md (+2/−2), .claude/skills/pm-dispatch/references/landing-operations.md (+2/−2). skip-changeset. Clause-②: no, Metadata-protocol: none. check-governed-merges --pr 34559: Tier H.
  • Premise measured: PD14 on main (merge 3bf9c5c4) quoted verbatim in the body; the review read it, the audit 6902190812, the job log of run 43767458575 and the queue timeline of PR fix(app-shell): Home sends its deployment-notice, authorized-clients and API-key reads once per load #34097 (removed_from_merge_queue 22:10:50Z). The seat read the two reference hunks: each merged line keeps both cases and the rule.
  • Gates (check-runs on this head): 54 runs, 26 success, 28 skipped, none red (Governed Surface Queue Guard, Lint & Repo Gates, TypeScript Type Check success); mergeable clean. Dev: 70 derived, 68 exit 0, 2 NOT MEASURED (doc-formula-expressions, i18n-coverage, builds missing; CI's lanes ran them); pm-skill-ratchet and pm-skill-id-lint exit 0; self-test 581 pass.
  • Accepted deviations: Part of for Refs (above). Review nits N1–N5 accepted as recorded in 6936994907: N4 (the merged readings line drops 「两者处置相反」) and N5 (the relay dequeue's queue-exit actor not recorded) can ride with the card's open E1 box; N1–N3 are wording only.
  • Contract review routing: review#2 declined new first reviews (wind-down) and l2-review#3 left the hand-off unclaimed, so on the account owner's word the seat ran the review through a CONTRACT_REVIEW_TIER sub-agent; verify-review-tier passed on its transcript before the post.
  • Landing: Tier H. pm:awaiting-merge; reviewers os-zhuang and hotlong requested. K is 45 behind now; an APPROVED review on this head lets the seat land it after merging main (a merge-only head move). Once merged, the seat ticks the two follower boxes on review follow-ups of PR #33732 #33768.

@objectstack-fleet objectstack-fleet Bot added pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue and removed needs:contract-review Marker only — PR awaits its at-tier Contract review PASS; no check reads it, the record decides labels Nov 17, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 03:18
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
@objectstack-fleet objectstack-fleet Bot mentioned this pull request Nov 17, 2026
6 of 11 tasks
Merged via the queue into main with commit f4a2d14 Nov 17, 2026
63 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-xwv2iy branch November 17, 2026 03:35
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants